<!DOCTYPE html>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<!-- BEGIN HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN CONTAINER -->
	<!-- BEGIN CONTENT -->
	<!--表格操作按钮组-->
			<div class="modal-body form" id="formID">
				<div class="form-group">
					<div class="row">
						<label class="col-sm-1 control-label text-right">非空数字长度</label>
						<div class="col-sm-3">
							<div class="input-group"><input type="text" id="input1" class="form-control bValidate" key="required,numberAndLetter,range_2-16"/></div>
						</div>
						<label class="col-sm-1 control-label text-right">对比前一个</label>
						<div class="col-sm-3">
							<div class="input-group"><input type="text" class="form-control bValidate" key="equalTo_#input1"/></div>
						</div>
						<label class="col-sm-1 control-label text-right">自定义方法</label>
						<div class="col-sm-3">
							<div class="input-group"><input type="text" class="form-control bValidate" key="required,method_testValue"/></div>
						</div>
					</div>
					<div class="row">
						<label class="col-sm-1 control-label text-right">角色</label>
						<div class="col-sm-3">
							<div class="input-group">
								<select class="form-control">
									<option>系统管理员</option>
								</select>
							</div>
						</div>
						<label class="col-sm-1 control-label text-right">状态</label>
						<div class="col-sm-3">
							<div class="checkbox-list">
								<label class="checkbox-inline"><input type="checkbox" value="1" checked>启用</label>
								<label class="checkbox-inline"><input type="checkbox" value="1">禁用</label>
							</div>
						</div>
						<label class="col-sm-1 control-label text-right">状态</label>
						<div class="col-md-3">
							<div class="radio-list">
								<label class="radio-inline"><input type="radio" name="optionsRadios" value="1" checked>启用</label>
								<label class="radio-inline"><input type="radio" name="optionsRadios" value="2">启用</label>
							</div>
						</div>
					</div>
					<hr />
					<div class="row">
						<div class="col-sm-6 text-center">
							<div class="b-show_img" id="showPortrait4Box">
	                            <img src="/manageView/assets/img/logo.png">
	                        </div><br />
							<div class="b-show_img_btns">
								<label>
									<input class="b-file_molding" size="6" type="file" onchange="previewImage(this,'showPortrait4Box')">
									<input value="添加照片" type="button">
								</label>
							</div>
						</div>
						<div class="col-sm-6 text-center">
							<div class="b-show_img" id="showPortrait5Box">
	                            <img src="/manageView/assets/img/logo.png">
	                        </div><br />
							<div class="b-show_img_btns">
								<label>
									<input class="b-file_molding" size="6" type="file" onchange="previewImage(this,'showPortrait5Box')">
									<input value="添加照片" type="button">
								</label>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i>关闭</button>
				<button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>保存</button>
			</div>
	<!-- END CONTENT -->
<!-- END CONTAINER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
</body>
<!-- END BODY -->
</html>
<!--通用事件绑定js-->
<script src="manageView/assets/scripts/public.js" type="text/javascript"></script>
<script>
function testValue(_value){
	if(_value.length > 5){
		bValidateObj.TorF = true;
	}else{
		bValidateObj.TorF = false;
	}
}
$('button[type="submit"]').on('click',function(){
	if(bValidateObj.bValidateAll($('#formID'))){
		//验证成功执行代码
		alert('验证成功');
	}
});
</script>